//
//  DecorationImageCollectionViewCell.m
//  PerfectWorld
//
//  Created by dllo on 16/9/9.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "DecorationImageCollectionViewCell.h"
#import "UIImageView+WebCache.h"
#import "Space.h"
#import "Img.h"
@implementation DecorationImageCollectionViewCell

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if (self) {
        
    }
    return self;
}

- (void)setImg:(Img *)img {
    _img = img;
    NSString *str = [img.photoId substringToIndex:3];
    [_bigImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://image.gooju.cn/images/%@/9/%@_0_9-.jpg", str, img.photoId]] placeholderImage:nil];
}

- (void)layoutSubviews {
    [super layoutSubviews];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    [self layoutIfNeeded];
}

@end
